Thread: Using Browser Helper objects in C. [Help]

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    4

    Using Browser Helper objects in C. [Help]

    Okay, BHO as we all know (Browser Helper Objects) can be used to inject html/javascripts into a browser process. Now here is what I am looking for,
    For instance, I have a website, business website, and I always want to take surveys of people who have visited the website, for our service improvement or something,now I use an already written Browser helper object so that once the user visits our web, the survey form comes out, so I can get the information entered by the user. How possible is this with C? How can I use C to inject a browser helper object which has already been written into a browser process? If possible, an assistance with a source code will be greatly appreciated!

    I am quite new to this.
    Last edited by hanesis; 10-26-2013 at 05:13 AM.

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    What's a BHO? It seems specific only to Internet Explorer. Why not start with a simple example first? Top results of Google gave this example, which is C++ but with minor modifications it should compile with a C compiler

    BHO (Browser Helper Objects)

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Why do you want something as invasive (and unportable) as a BHO just to conduct a survey?

    Especially when everyone else seems to manage it with javascript and some cookies.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    The user has an obsession with "injecting" code into HTML. I think he has no idea what it means, let alone why you'd want to do it.

    If anything, I'd guess that he'd picked up on the term somewhere and is possibly trying to do something malicious. Fortunately, he lacks the understanding to even get beyond formulating the question correctly, let alone getting answers to it.

    Injection is putting things that would not normally be on a website onto it, usually maliciously, by ways that the user doesn't control and wouldn't be willing to allow. If you want to do that, go elsewhere. If that's not what you mean, rephrase the question (and do a LOT of learning either way). Hint: What does this have to do with C, when we're discussing things on your own website viewed by users in a standard browser?

    P.S. If you want to put things in a website you own, just do it, and drop the "injection" terminology.

    P.P.S. The things I suspect you actually want to do? They are not easy, and operating systems and browsers are designed to STOP you being able to do them. You won't run a BHO on my system by sending me to a webpage, I guarantee it.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Helper functions: design issue
    By anon in forum C++ Programming
    Replies: 3
    Last Post: 02-20-2008, 03:44 PM
  2. your fav helper....
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-17-2002, 02:59 AM
  3. STL autocomplete and 'helper' in VC++
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 07-17-2002, 04:43 PM
  4. Context Menu, ...helper menus?
    By MrWizard in forum C++ Programming
    Replies: 3
    Last Post: 04-05-2002, 02:25 AM